package com.waves.core.frequencycontrol.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 业务报错提示枚举类
 */
@AllArgsConstructor
@Getter
public enum BusinessErrorEnum implements ErrorEnum {
    BUSINESS_ERROR(1001, "{0}"),
    SYSTEM_ERROR(1002, "系统出小差了，请稍后再试哦~~"),
    CAPACITY_REFILL_ERROR(1003, "Capacity and refill rate must be positive"),
    TASK_ERROR(1004, "该任务类型不存在!"),
    RECEIVE_ERROR(1005, "该类型不存在!"),
    ;
    private Integer code;
    private String msg;

    @Override
    public Integer getErrorCode() {
        return code;
    }

    @Override
    public String getErrorMsg() {
        return msg;
    }
}
